package com.t;

public class TObject {
	private Object obj;
	
	public TObject(Object obj){
		this.obj = obj;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}
	
	public static void main(String[] args){
		TObject objStr = new TObject(new TString("test String"));
		
		TObject objDou = new TObject(new TDouble(new Double(12.5)));
		
		TObject obj = new TObject(new Object());
		
		System.out.println((TString)objStr.getObj());
		
		System.out.println((TDouble)objDou.getObj());
		
		System.out.println(obj.getObj());
	}
}
